﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000E9 RID: 233
	public class TAlterResourceMonitorStmt : TCustomSqlStatement
	{
		// Token: 0x060007EE RID: 2030 RVA: 0x00301525 File Offset: 0x002FF725
		public void setResourceMonitorName(TObjectName resourceMonitorName)
		{
			this.resourceMonitorName = resourceMonitorName;
		}

		// Token: 0x060007EF RID: 2031 RVA: 0x0030152E File Offset: 0x002FF72E
		public TObjectName getResourceMonitorName()
		{
			return this.resourceMonitorName;
		}

		// Token: 0x060007F0 RID: 2032 RVA: 0x00301536 File Offset: 0x002FF736
		public TAlterResourceMonitorStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstAlterResourceMonitor;
		}

		// Token: 0x060007F1 RID: 2033 RVA: 0x0030154C File Offset: 0x002FF74C
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.resourceMonitorName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x060007F2 RID: 2034 RVA: 0x00301589 File Offset: 0x002FF789
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060007F3 RID: 2035 RVA: 0x00301599 File Offset: 0x002FF799
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040011F7 RID: 4599
		private TObjectName resourceMonitorName;
	}
}
